home *** CD-ROM | disk | FTP | other *** search
/ Virtual Valerie 2 / Virtual Valerie 2.iso / pc / data / self1 / 00038.ls < prev    next >
Encoding:
Text File  |  1995-01-19  |  664 b   |  34 lines

  1. on exitFrame
  2.   global HOLE, CHEEK, CHEEK2, TOUCH, SCORE
  3.   set the constraint of sprite 10 to 11
  4.   if sprite 10 intersects 8 then
  5.     set CHEEK to CHEEK + 1
  6.   end if
  7.   if sprite 10 intersects 5 then
  8.     set HOLE to HOLE + 1
  9.   end if
  10.   if sprite 10 intersects 9 then
  11.     set CHEEK2 to CHEEK2 + 1
  12.   end if
  13.   if HOLE > 2 then
  14.     set HOLE to 2
  15.   end if
  16.   if CHEEK > 2 then
  17.     set CHEEK to 2
  18.   end if
  19.   if CHEEK2 > 2 then
  20.     set CHEEK2 to 2
  21.   end if
  22.   set TOUCH to HOLE + CHEEK + CHEEK2
  23.   if TOUCH > 5 then
  24.     set TOUCH to 0
  25.     set HOLE to 0
  26.     set CHEEK to 0
  27.     set CHEEK2 to 0
  28.     set SCORE to SCORE + 1
  29.     go(marker(1))
  30.     PRINTSCORE()
  31.     exit
  32.   end if
  33. end
  34.